# get the changes
svn diff ChangeLog | \
    egrep '^\+'| \
    sed -e 's/^\+//g'| \
    sed -e 's/^/   /g'| \
    sed -e 's/^   \*/ \*/g'| \
    egrep -v '^   \+\+.*ChangeLog' > /tmp/commit-msg

echo
echo "Committing with this message:"
cat /tmp/commit-msg
echo
echo "Changed files:"
./admin/stat.sh
echo
CWD=`pwd`
svn commit --file /tmp/commit-msg && \
    rm /tmp/commit-msg || \
    echo "There was an error committing; message preserved."
